<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <title>Document</title>
  <link rel="stylesheet" href="/node_modules/bootstrap/dist/css/bootstrap.css">
  <!-- 导入bootstrap插件 -->
  <link rel="stylesheet" href="../public/lib/bootstrap-validator/css/bootstrapValidator.min.css">
  <link rel="stylesheet" href="/public/css/login.css">
</head>

<body>
  <div class="main">
    <div class="header">
      <a href="/">
        <img src="/public/img/logo3.png" alt="">
      </a>
      <h1>用户注册</h1>
    </div>
    <form id="register_form">
      <div class="form-group">
        <label for="email">邮箱</label>
        <input type="email" class="form-control" id="email" name="email" placeholder="Email" autofocus>
      </div>
      <div class="form-group">
        <label for="nickname">昵称</label>
        <input type="text" class="form-control" id="nickname" name="nickname" placeholder="Nickname">
      </div>
      <div class="form-group">
        <label for="password">密码</label>
        <input type="password" class="form-control" id="password" name="password" placeholder="Password">
      </div>
      <button type="submit" class="btn btn-success btn-block">注册</button>
    </form>
    <div class="message">
      <p>已有账号? <a href="/signin">点击登录</a>.</p>
    </div>
  </div>
  <!-- <script src="/node_modules/jquery/dist/jquery.js"></script> -->
  <!-- <script>
    $('#register_form').on('click', function (e) {
      e.preventDefault()
      var formData = $(this).serialize()
      $.ajax({
        url: '/register',
        type: 'post',
        data: formData,
        dataType: 'json',
        success: function (data) {
          console.log(data)
        }
      })
    })
  </script> -->
  <!-- 导入jQuery文件 -->
  <script src="../node_modules/jquery/dist/jquery.min.js"></script>
  <!-- 引入bootstrap js文件 -->
  <script src="../node_modules/bootstrap/dist/js/bootstrap.min.js"></script>
  <script src="../public/lib/bootstrap-validator/js/bootstrapValidator.min.js"></script>
  <!-- 首页js文件 -->
  <script src="../public/js/index.js"></script>
</body>

</html>
